{include file="public/header" /}
<link rel="stylesheet" href="/static/admin/addons/builder/css/base.css" media="all">
<style>
    .layui-form-item {
        margin-bottom: 15px !important;
        clear: both;
        *zoom: 1;
    }
</style>
<body>
<div class="layui-fluid layui-anim layui-anim-downbit">
    <div class="layui-card">
        <div class="layui-card-body" style="padding: 15px;">
            <form action="{:url('save')}" class="layui-form  v3-admin-form" id="form">
                <div class="layui-row">
                    <input type="hidden" name="id" value="{$info.id}"/>
                    <div class="layui-col-xs12 layui-col-sm12 layui-col-md6">
                        <div class="layui-form-item">
                            <label class="layui-form-label">退款类型</label>
                            <div class="layui-input-block">
                                <input type="text" value="{$info.type == 1 ? '仅退款':'退货退款'}" class="layui-input" disabled/>
                            </div>
                        </div>
                    </div>
                    <div class="layui-col-xs12 layui-col-sm12 layui-col-md6">
                        <div class="layui-form-item">
                            <label class="layui-form-label">退款原因</label>
                            <div class="layui-input-block">
                                <input type="text" value="{$info.reason}" class="layui-input" disabled/>
                            </div>
                        </div>
                    </div>

                    <div class="layui-col-xs12 layui-col-sm12 layui-col-md6">
                        <div class="layui-form-item">
                            <label class="layui-form-label">退款截图</label>
                            <div class="layui-input-block">
                                <a href="javascript:;" class="openShowImg" data-value="{$info.images}"><img src="{$info.images}" style="width: 48px; height: 48px;"/></a>
                            </div>
                        </div>
                    </div>
                    <div class="layui-col-xs12 layui-col-sm12 layui-col-md6">
                        <div class="layui-form-item">
                            <label class="layui-form-label">退款备注</label>
                            <div class="layui-input-block">
                                <input type="text" value="{$info.note}" class="layui-input" disabled/>
                            </div>
                        </div>
                    </div>
                    <div class="layui-col-xs12 layui-col-sm12 layui-col-md6">
                        <div class="layui-form-item">
                            <label class="layui-form-label">申请时间</label>
                            <div class="layui-input-block">
                                <input type="text" value="{$info.create_time}" class="layui-input" disabled/>
                            </div>
                        </div>
                    </div>
                    {if $info->getData('status') == 1 || $info->getData('status') == 3}
                    <div class="layui-col-xs12 layui-col-sm12 layui-col-md6">
                        <div class="layui-form-item">
                            <label class="layui-form-label">审核</label>
                            <div class="layui-input-block">
                                {if $info->type == 1}
                                <input type="radio" name="status" value="5" title="通过">
                                {else}
                                    {if $info->getData('status') == 1}
                                    <input type="radio" name="status" value="2" title="同意退款">
                                    {else}
                                    <input type="radio" name="status" value="5" title="通过">
                                    {/if}
                                {/if}
                                <input type="radio" name="status" value="4" title="驳回">
                            </div>
                        </div>
                        {if $info->getData('status') == 3}
                            <div class="layui-form-item">
                                <label for="express_id" class="layui-form-label">快递公司</label>
                                <div class="layui-input-inline">
                                    <select name="express_id" id="express_id" lay-filter="express_id"
                                            style="max-height: 100px;">
                                        {volist name="express" id="vo"}
                                        <option value="{$vo.id}" {if $info.express_id== $vo.id} selected{/if} >{$vo.title}</option>
                                        {/volist}
                                    </select>
                                </div>
                            </div>
                            <div class="layui-col-xs12 layui-col-sm12 layui-col-md6">
                                <div class="layui-form-item">
                                    <label class="layui-form-label">快递单号</label>
                                    <div class="layui-input-block">
                                        <input type="text" value="{$info.no_number}" class="layui-input" disabled/>
                                    </div>
                                </div>
                            </div>
                        {/if}
                    </div>
                    {else}
                    <div class="layui-col-xs12 layui-col-sm12 layui-col-md6">
                        <div class="layui-form-item">
                            <label class="layui-form-label">状态</label>
                            <div class="layui-input-block">
                                <input type="text"
                                       value="{if $info->getData('status') == 2}同意退款{elseif $info->getData('status') == 3}待寄回{elseif $info->getData('status') == 4}驳回{elseif $info->getData('status') == 5}退款成功{else}待审核{/if}"
                                       class="layui-input" disabled/>
                            </div>
                        </div>
                    </div>
                    {/if}
                    {if $info->getData('status') == 4 || $info->getData('status') == 1}
                    <div class="layui-col-xs12 layui-col-sm12 layui-col-md6">
                        <div class="layui-form-item">
                            <label class="layui-form-label">驳回原因</label>
                            <div class="layui-input-block">
                                <input type="text" name="reject_msg" value="{$info.reject_msg?:''}"
                                       placeholder="如要驳回请输入驳回原因"
                                       class="layui-input"/>
                            </div>
                        </div>
                    </div>
                    {/if}
                    {if $info->getData('status') != 1}
                    <div class="layui-col-xs12 layui-col-sm12 layui-col-md6">
                        <div class="layui-form-item">
                            <label class="layui-form-label">处理时间</label>
                            <div class="layui-input-block">
                                <input type="text" value="{$info.confirm_time?:''}" class="layui-input" disabled/>
                            </div>
                        </div>
                    </div>
                    <div class="layui-col-xs12 layui-col-sm12 layui-col-md6">
                        <div class="layui-form-item">
                            <label class="layui-form-label">处理人</label>
                            <div class="layui-input-block">
                                <input type="text" value="{$info.admin_name?:''}" class="layui-input" disabled/>
                            </div>

                        </div>
                    </div>
                    {/if}
                </div>
            </form>
        </div>
    </div>
</div>
{if $info->getData('status') == 1 || $info->getData('status') == 3}
{include file="public/submit" /}
{/if}
</body>
{include file="public/footer" /}
</html>